package com.dailyblue.java.spring.boot.mvc.mybatis.service;

import com.dailyblue.java.spring.boot.commons.bean.User;
import com.dailyblue.java.spring.boot.commons.exception.UserCodeNotFoundException;
import com.dailyblue.java.spring.boot.commons.exception.UserPasswordErrorException;
import com.dailyblue.java.spring.boot.commons.util.JsonResult;

public interface UserService {

    JsonResult logout(String token);

    JsonResult login(User user) throws UserCodeNotFoundException, UserPasswordErrorException;

    JsonResult isLogin(String token);
}
